<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="../assets/lib/cropper/cropper.css">
    <link rel="stylesheet" href="../assets/css/user_avatar.css">

</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">更换头像</div>
        <div class="layui-card-body">
            <div class="row1">
                <div class="cropper_box">
                    <img src="../assets/images/sample.jpg" />
                </div>
                <div class="preview_box">
                    <div>
                        <div class="preview_img w100"></div>
                        <div class="size_text">100x100</div>
                    </div>
                    <div>
                        <div class="preview_img w50"></div>
                        <div class="size_text">50x50</div>
                    </div>
                </div>
            </div>
            <div class="row2">
                <input type="file" id="file" style="display: none;">
                <button type="button" class="choose_img layui-btn layui-btn-normal">选择图片</button>
                <button type="button" class="update_img layui-btn">上传头像</button>
            </div>
        </div>
    </div>
</body>
<script src='../assets/lib/layui/layui.all.js'></script>
<script src="../assets/lib/jquery.js"></script>
<script src='../assets/js/baseAPI.js'></script>
<script src="../assets/lib/cropper/Cropper.js"></script>
<script src="../assets/lib/cropper/jquery-cropper.js"></script>
<script src='../assets/js/user_avatar.js'></script>

</html>